createKeyDownEvent

Creates a new KeyEvent instance with the KEY_DOWN event type and the given params.

Return

a new KeyEvent instance

Parameters

params

the key event parameters

Throws

if the event creation has been failed

when the document is closed